package driver.ui.driver.ListPopulate;

import java.util.ArrayList;

import driver.ui.R;
import driver.ui.driver.Beans.action;
import driver.ui.driver.Beans.person;

public class Populatelist {
	ArrayList<action>   actionlist;
	ArrayList<person>   contactlist;
	ArrayList<String> contacts;
	
	public ArrayList<String> getContacts() {
		return contacts;
	}
	public void setContacts(ArrayList<String> contacts) {
		this.contacts = contacts;
	}

	public ArrayList<action> getActionlist() {
		return actionlist;
	}
	public void setActionlist(ArrayList<action> actionlist) {
		
		actionlist= new ArrayList<action>();
		action ac1=new action();
	    ac1.setImgsrc(R.drawable.meeting);
	    ac1.setName("Set up meeting");
	    actionlist.add(ac1);
	    action ac2=new action();
	    ac2.setImgsrc(R.drawable.pickup);
	    ac2.setName("Set up pickup");
	    actionlist.add(ac2);
	    action ac3=new action();
	    ac3.setImgsrc(R.drawable.call);
	    ac3.setName("Call Back");
	    actionlist.add(ac3);
	    action ac4=new action();
	    ac4.setImgsrc(R.drawable.sms);
	    ac4.setName("Send text message");
	    actionlist.add(ac4);
	    action ac5=new action();
	    ac5.setImgsrc(R.drawable.voicemail);
	    ac5.setName("Leave voicemail");
	    actionlist.add(ac5);
	    action ac6=new action();
	    ac6.setImgsrc(R.drawable.share);
	    ac6.setName("Share Status");
	    actionlist.add(ac6);
	    action ac7=new action();
	    ac7.setImgsrc(R.drawable.clock);
	    ac7.setName("Close");
	    actionlist.add(ac7);
		this.actionlist = actionlist;
	}
	public ArrayList<person> getContactlist() {
		return contactlist;
	}
	public void setContactlist(ArrayList<person> contactlist) {
        person p1=new person();
        p1.setName(contacts.get(0));
       	p1.setImgsrc(R.drawable.a_2);
       	p1.setStatus("Driving");
       	contactlist.add(p1);
       	
        person p2=new person();
        p2.setName(contacts.get(1));
       	p2.setImgsrc(R.drawable.a_2);
       	p2.setStatus("Available");

       	contactlist.add(p2);
       	
       	
        person p3=new person();
        p3.setName(contacts.get(2));
        p3.setImgsrc(R.drawable.a_2);
       	p3.setStatus("Meeting");

       	contactlist.add(p3);
       	
       	
        person p4=new person();
        p4.setName(contacts.get(3));
       	p4.setImgsrc(R.drawable.a_2);
       	p4.setStatus("Offline");

       	contactlist.add(p4);
       	
        person p5=new person();
        p5.setName(contacts.get(4));
       	p5.setImgsrc(R.drawable.a_2);
       	p5.setStatus("Available");
       	contactlist.add(p5);
       	
       	
        person p6=new person();
        p6.setName(contacts.get(5));
       	p6.setImgsrc(R.drawable.a_2);
       	p6.setStatus("Available");
 
       	contactlist.add(p6);
       	
        person p7=new person();
        p7.setName(contacts.get(6));
       	p7.setImgsrc(R.drawable.a_2);
       	p7.setStatus("Available");

       	contactlist.add(p7);
       	  
		this.contactlist = contactlist;
	}

	
}
